package com.itheima.propertiesio;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class PropertiesDemo4 {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.put("zhangsan", "123");
        prop.put("lisi", "456");
        prop.put("wangwu", "789");

        FileWriter fw = new FileWriter("OtherStream\\prop.properties");
        prop.store(fw,null);
        fw.close();
    }
}
